package org.springblade.modules.repair.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.repair.enums.MaintainPlanContentEnum;

import java.util.Date;

/**
 * @Description 配件申请关联维修单明细
 * @Author ysq
 * @Date 2024/05/23
 **/
@Data
public class PartsApplyRelationMalDetailVO {

	@ApiModelProperty(value = "工单id")
	private Long planId;

	@ApiModelProperty(value = "1:非常紧急2:紧急3:普通4:较低")
	private Integer emerProcType;

	@ApiModelProperty(value = "1-内部整改 2-客户报障")
	private Integer workOrderType;

	@ApiModelProperty(value = "工单开始时间")
	private Date planBeginTime;

	@ApiModelProperty(value = "工单结束时间")
	private Date planEndTime;

	@ApiModelProperty(value = "源工单类型")
	private Integer sourcePlanType;

	@ApiModelProperty(value = "源工单类型名称")
	private String sourcePlanTypeName;

	@ApiModelProperty(value = "源工单计划时间")
	private Date wxPlanDate;

	@ApiModelProperty(value = "源工单计划完成时间")
	private Date wxPlanFinishDate;

	public void setSourcePlanType(Integer sourcePlanType) {
		this.sourcePlanType = sourcePlanType;
		if (sourcePlanType != null) {
			this.sourcePlanTypeName = MaintainPlanContentEnum.getName(sourcePlanType);
		}
	}
}
